package com.health.test;

import java.io.IOException;

import com.health.test.GMemcachedClient;

import net.rubyeye.xmemcached.MemcachedClient;
import net.rubyeye.xmemcached.MemcachedClientBuilder;
import net.rubyeye.xmemcached.XMemcachedClientBuilder;
import net.rubyeye.xmemcached.utils.AddrUtil;

public class GMemcachedClient {

	static {
		MemcachedClientBuilder builder = new XMemcachedClientBuilder(
					AddrUtil.getAddresses("10.1.20.133:11211"));
	}

	private GMemcachedClient() {

	}

	private static GMemcachedClient globalInstance;

	public static GMemcachedClient getInstance() {
		if (null == globalInstance) {
			globalInstance = new GMemcachedClient();
		}
		return globalInstance;
	}

//	public static MemcachedClient memClient() {
//		return builder.build();
//	}
}
